/**
 * Copyright  (c) 2009-2013 XLab,  Org. 
 * All  rights  reserved. 
 */
package org.xlab.baseframework.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.xlab.baseframework.domain.enumerate.EnumLogLevel;


/**
 * 使用在类定义(Class Declare)或者方法定义(Method Declare)之前,参数为true/false,默认为true
 * 
 * @author MaKuBEX Email:makubexnet@gmail.com
 * @version 1.0.0 Sep 6, 2010
 * @since 1.0.0
 * 
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Loggable {
	String description() default "";

	EnumLogLevel logLevel() default EnumLogLevel.LOG_LEVEL_THREE;

	String title() default "";

	/**
	 * 默认值为true,如果设置为false则会关闭系统日志功能
	 * 
	 * @return true/false
	 */
	boolean value() default true;
}
